package yuan.deng.controller;

import org.junit.Test;
import yuan.deng.domain.Details;
import yuan.deng.domain.Items;
import yuan.deng.service.DetailsService;
import yuan.deng.service.ItemsService;
import yuan.deng.service.impl.DetailsServiceImpl;
import yuan.deng.service.impl.ItemsServiceImpl;

import java.util.List;

public class DetailsController {

    DetailsService detailsService=new DetailsServiceImpl();
    @Test
    //新增 订单
    public void addDetails(){
        Details details=new Details(1,2,3);
        int i=detailsService.addDetails(details);
        System.out.println(i);
    }
    //查询所有
    @Test
    public void findAll(){
        List<Details> list=detailsService.findAll();
        System.out.println(list);
    }
}
